<div class="col-md-12">
    <div class="box margin-middle max-width">
        <!-- BOX-BODY -->
        <div class="box-body">
            {{#bs-form formLayout=formLayout model=salarypositionModel}}
                <!-- 列表编辑-->
                <div class="row">
                    <div class="col-xs-12">
                        <p class="user-add-btn">
                          {{#if detailEdit}}
                          {{else}}
                            {{#ui/form-function editAction="detailEditClick" detailEditClick="detailEditClick"
                            removeAction="delById" delById="delById"}}
                            {{/ui/form-function}}
                          {{/if}}
                        </p>
                    </div>
                    <div class="col-xs-12 nopadding-horizontal mt20">
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">岗位角色：</span>
                                {{#if detailEdit}}
                                  {{bs-form-element property="name" class="inline-block form-input-group col-sm-6 nopadding-left" controlType="name" placeholder="必填"}}
                                  <div class="choose-inline-block pointer col-sm-4 top10" {{action "choosewithSalary" on="click"}}>
                											<div class="choose-box choose-inline-block {{if (eq isAdmin '1') 'fa-check' ''}}"></div>
                											<div class="choose-inline-block">是否管理员</div>
                									</div>
                                {{else}}
                                    <div class="input-group-content">{{salarypositionsInfo.name}}
                  										<div class="left14 choose-box choose-inline-block {{if (eq isAdmin '1') 'fa-check' ''}}"></div>
                  										<div class="choose-inline-block">是否管理员</div>
                  									</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">岗位工资(元)：</span>
                                {{#if detailEdit}}
                                  {{bs-form-element property="salaryAmount" class="inline-block form-input-group" controlType="salaryAmount" placeholder="必填"}}
                                {{else}}
                                    <div class="input-group-content">{{salarypositionsInfo.salaryAmount}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-12">
                            <div class="form-input-group">
                                <span class="input-group-addon">备&emsp;&emsp;注：</span>
                                {{#if detailEdit}}
                                    {{textarea type="text" class="full-width inline-block form-input-group label-normal form-control" value=salarypositionModel.remark placeholder="最多输入100字" maxlength="100"}}
                                {{else}}
                                    <div class="input-group-content">{{salarypositionsInfo.remark}}</div>
                                {{/if}}
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 列表编辑 -->
                <div class="box">
                <div class="text-center padding-top20">
                    <p class="text-center user-add-btn" style="display:inline-block;margin:0 auto!important ">
                    {{#if detailEdit}}
                    {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-check"  text='保存' clickAction="savesalaryposition" savesalaryposition="savesalaryposition"}}
                    {{/ui/mix-button}}
                    {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-mail-reply"  text='取消' clickAction="detailCancel" detailCancel="detailCancel"}}
                    {{/ui/mix-button}}
                    {{else}}
                    {{/if}}
                    </p>
                </div>
                </div>
            {{/bs-form}}
        </div>
        <!-- /BOX-BODY -->
    </div>
</div>

{{#if addNewGoodsModel}}
	{{#bs-modal body=false footer=false header=false closedAction=(action "invitation")}}

		{{#bs-modal-header}}
			<h3 class="modal-title">新增物品</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
    {{#bs-form formLayout=formLayout model=goodsModel invalid=(action "invalid")}}
    <div class="col-xs-12 nopadding-horizontal">
      <div class="col-xs-12 nopadding-left">
        <div class="form-input-group">
          <span class="input-group-addon">名称：</span>
            {{bs-form-element property="name" class="inline-block form-input-group" controlType="name" placeholder="必填"}}
        </div>
      </div>
    </div>
        <div class="col-xs-12 nopadding-horizontal">
  					<div class="form-input-group">
  						<span class="input-group-addon">物品类型：</span>
                {{#bs-form-element class="inline-block form-input-group" controlType="goodsType"  property="goodsType" }}
                  {{callbusi/dict-selector groupCode=constants.goodsType curDict=goodsModel.goodsType
                    showName='必填' dictSelect="goodsTypeSelect" preselected=false value=goodsModel.goodsType}}
                {{/bs-form-element}}
  					</div>
  				</div>
          <div class="col-xs-12 nopadding-horizontal">
    					<div class="form-input-group">
    						<span class="input-group-addon">单位：</span>
                {{bs-form-element property="unit" class="inline-block form-input-group" controlType="unit" placeholder="必填"}}
    					</div>
    				</div>

      {{/bs-form}}
		{{/bs-modal-body}}
		{{#bs-modal-footer class="user-add-btn confirmCreate"}}
      {{#ui/mix-button class="user-btn edit-btn"  iconClass="fa fa-save"  text='确定' clickAction="saveNewGoods" saveNewGoods="saveNewGoods"}}
      {{/ui/mix-button}}
      {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="invitation" invitation="invitation"}}
      {{/ui/mix-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}
